package cn.diancan.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import cn.diancan.util.DateUtil; 

/**
 * 购物车功能
 * @author Administrator
 */
@Entity
public class PurchaseSaleOrderBuyCar {
    
    private Long id;
    private Long sysManagerId;
    private Long goodsId; //可无（需检验）
    private Long productId;
    private Double retailPrice;  //销售价格 可无（需检验）
    private Integer quantity;//总量
    private String createTime; 
    private Integer isDelete;
    
    
    @Id
    @GeneratedValue
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getGoodsId() {
        return goodsId;
    }
    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }
    public Long getProductId() {
        return productId;
    }
    public void setProductId(Long productId) {
        this.productId = productId;
    }
    public Double getRetailPrice() {
        return retailPrice;
    }
    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }
    public Integer getQuantity() {
        return quantity;
    }
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
    public Long getSysManagerId() {
        return sysManagerId;
    }
    public void setSysManagerId(Long sysManagerId) {
        this.sysManagerId = sysManagerId;
    }
    @Column(columnDefinition="DATETIME")
    public String getCreateTime() {
        return DateUtil.getMysqlDateTime(createTime);
    }
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    } 
    public Integer getIsDelete() {
        return isDelete;
    }
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
    
    

}
